package com.hanamaki.oop.demo01;

//  引用值传递
public class Demo04 {

    public static void main(String[] args) {
        Person person = new Person();

        System.out.println(person.name); // null
        change(person);
        System.out.println(person.name); //

    }
    public static void change(Person person) {
        person.name = "Hanamaki";
    }

}
//一个类中只能存在一个 被 public修饰的类
class Person {

    String name;

}
